<%@taglib uri="http://www.zkoss.org/jsp/zul"  prefix="zk"%>
<%@taglib uri="/WEB-INF/struts-logic.tld" prefix="logic"%>
<%@taglib uri="/WEB-INF/struts-bean.tld" prefix="bean"%>

<logic:present role="Customer,Employee,Admin,Manager">
    <div class="arrowlistmenu" align="left">
        <style type="text/css">
            .infoBoxText {
                font-family: Verdana, sans-serif;
                font-size:130%;
                padding-left: 10px;
            }
        </style>
        <h3 class="headerbar"><%= request.getRemoteUser()%></h3>
        <logic:present role="Customer">
            <a class="infoBoxText" href="${pageContext.request.contextPath}/Customer/">Customer Home</a><br/>
            <a class="infoBoxText" href="${pageContext.request.contextPath}/changePassword.jsp">Change Password</a><br/>
        </logic:present>
        <logic:present role="Employee">
            <logic:notEmpty name="BranchId" scope="session">
                <span class="infoBoxText">
                    Branch: <strong><bean:write name="BranchName" scope="session"/></strong><br/>
                </span>
            </logic:notEmpty>
            <a class="infoBoxText" href="${pageContext.request.contextPath}/Employee/">Employee Home</a><br/>
            <a class="infoBoxText" href="${pageContext.request.contextPath}/changePassword.jsp">Change Password</a><br/>
        </logic:present>
        <logic:present role="Admin">
            <a class="infoBoxText" href="${pageContext.request.contextPath}/Admin/">Admin Home</a><br/>
            <a class="infoBoxText" href="${pageContext.request.contextPath}/changePassword.jsp">Change Password</a><br/>
        </logic:present>
        <logic:present role="Manager">
            <a class="infoBoxText" href="${pageContext.request.contextPath}/Manager/">Manager Home</a><br/>
            <a class="infoBoxText" href="${pageContext.request.contextPath}/changePassword.jsp">Change Password</a><br/>
        </logic:present>
        <a class="infoBoxText" href="${pageContext.request.contextPath}/logout">Logout</a>
        <br/><br/>
    </div>
</logic:present>
<logic:notPresent role="Customer,Employee,Admin,Manager">
    <div align="center">
        <zk:page>
            <zk:include src="/login.zul"></zk:include>
            <logic:messagesPresent name="statusMessage">
                <strong>
                    <font color="red"><bean:write name="statusMessage"/></font>
                </strong>
            </logic:messagesPresent>
        </zk:page>
    </div>
</logic:notPresent>